const mongoose = require('mongoose'),
    Schema = mongoose.Schema;

let orderSchema = new Schema({
  openid: {
    type: String,
    required: true
  },
  nickname: {
    type: String,
    default: ''
  },
  cost: {
    type: String,
    deafault: ''
  },
  storied: {
    type: String,
    deafault: ''
  },
  StoreName: {
    type: String,
    deafault: ''
  },
  pic: String,
  status: {
    type: Boolean,
    default: false
  }
}, {versionKey: false, timestamps: true});
module.exports = mongoose.model('order', orderSchema);
